/* eslint-disable */
'use strict'

module.exports = {
    success(data = null, message = 'success', code = 0) {
        this.status = 200
        this.body = {
            code,
            message,
            data
        }
    },
    error(message = 'error', code = 1, status = 200) {
        this.status = status
        this.body = {
            code,
            message,
            data: null
        }
    }
}